package com.magold.sound;

import java.io.IOException;

import org.andengine.audio.sound.Sound;
import org.andengine.audio.sound.SoundFactory;
import org.andengine.ui.activity.BaseGameActivity;

public class SE {
	private static String sBase = "mfx/";
	private SE() {}
	
	public static Sound load(BaseGameActivity pContext, String pPath) {
		try {
			Sound sound = SoundFactory.createSoundFromAsset(pContext.getSoundManager(), pContext,sBase + pPath);
			return sound;
		} catch (IOException e) {
			return null;
		}
		
	}
}
